import {request,asyncRequest} from "@/utils/request.js"

//日程列表
export const scheduleList = (data) => {
	return asyncRequest({
		url: `/app/zfw/calendar/list?${'pageSize='+data.pageSize+"&pageNum="+data.pageNum+"&month="+data.month}`
	})
}

//日程保存
export const scheduleSave = (params) => {
  return asyncRequest({
    url: `/app/zfw/calendar/save`,
    method: 'post',
    data: params
  })
}

//日程查看
export const scheduleCheck = (id) => {
  return asyncRequest({
    url: `/app/zfw/calendar/${id}`
  })
}

//日程修改
export const scheduleUpdate = (params) => {
  return asyncRequest({
    url: `/app/zfw/calendar/update`,
    method: 'post',
    data: params
  })
}

//日程删除
export const scheduleDelete = (id) => {
  return asyncRequest({
    url: `/app/zfw/calendar/delete/${id}`,
    method: 'post'
  })
}